import request from '@/utils/request'

// 查询币别表列表
export function listTable(query) {
  return request({
    url: '/caiwu/table/list',
    method: 'get',
    params: query
  })
}

// 查询币别表详细
export function getTable(currencyId) {
  return request({
    url: '/caiwu/table/' + currencyId,
    method: 'get'
  })
}

// 新增币别表
export function addTable(data) {
  return request({
    url: '/caiwu/table',
    method: 'post',
    data: data
  })
}

// 修改币别表
export function updateTable(data) {
  return request({
    url: '/caiwu/table',
    method: 'put',
    data: data
  })
}
// 停用/启用币别表
export function updateTableStatus(id) {
  return request({
    url: '/caiwu/table/' + id,
    method: 'put',
  })
}

// 删除币别表
export function delTable(currencyId) {
  return request({
    url: '/caiwu/table/' + currencyId,
    method: 'delete'
  })
}
